package com.mystudy.concurrent.designModel.contextModel;

/**
 * todo 查询操作
 * @Author acy
 * @Date 2019/05/29
 */
public class QueryDBAction {
	public void execute() {
		try {
			Thread.sleep(1000l);
			String name = "acy"+Thread.currentThread().getName();
			ActionContext.getActionContext().getMyContext().setName(name);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
